package com.shigen.demo.pattern.singleton;

/**
 * 枚举单例
 *
 * @author shigenfu
 * @date 2022/8/14 12:10 下午
 */
public enum EnumSingleton {
  INSTANCE;
  private Object data;

  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }

  public static EnumSingleton getInstance() {
    return INSTANCE;
  }

}
